//
//  DinnerCollectionViewCell.m
//  Simple Life
//
//  Created by lanou3g on 15/11/12.
//  Copyright © 2015年 wyt. All rights reserved.
//

#import "DinnerCollectionViewCell.h"

@interface DinnerCollectionViewCell ()



@end



@implementation DinnerCollectionViewCell

-(instancetype)initWithFrame:(CGRect)frame
{
    self = [super initWithFrame:frame];
    if (self) {
        [self setupViews];
    }
    return self;
}
-(void)setupViews
{
    self.pictureImageView = [[UIImageView alloc] initWithImage:[UIImage imageNamed:@"zxbd_bk@2x"]];
    self.pictureImageView.frame = self.bounds;
    [self.contentView  addSubview:self.pictureImageView];
    
    self.dinnerName = [[UILabel alloc] init];
    self.dinnerName.backgroundColor = [UIColor blackColor];
    self.dinnerName.backgroundColor = [UIColor colorWithRed:21.0/255 green:21.0/255 blue:21.0/255  alpha:0.7];
    //self.dinnerName.alpha = 0.5;
    self.dinnerName.frame = CGRectMake(50, 40, CGRectGetWidth(self.pictureImageView.frame)-50, 20);
    self.dinnerName.textColor = [UIColor whiteColor];
    self.dinnerName.text = @"党参乌鸡汤爱属地阿斯顿";
    
    [self.pictureImageView addSubview:self.dinnerName];
    
    
}

@end
